#pragma once
// defined in lua.c

#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"

extern char* MESSAGE;

/*
** state of Main method. what arguments were passed, how is the function executing
*/
struct Smain {
  int argc;
  char **argv;
  int status;
};

void l_message (const char *pname, const char *msg);

int pmain (lua_State *L);
int report (lua_State *L, int status);
int dofile (lua_State *L, const char *name);